import request from '@/utils/request'

// 查询已发布活动列表
export function listApproved(query) {
  return request({
    url: '/system/approved/list',
    method: 'get',
    params: query
  })
}

// 查询已发布活动详细
export function getApproved(id) {
  return request({
    url: '/system/approved/' + id,
    method: 'get'
  })
}

// 新增已发布活动
export function addApproved(data) {
  return request({
    url: '/system/approved',
    method: 'post',
    data: data
  })
}

// 修改已发布活动
export function updateApproved(data) {
  return request({
    url: '/system/approved',
    method: 'put',
    data: data
  })
}

// 删除已发布活动
export function delApproved(id) {
  return request({
    url: '/system/approved/' + id,
    method: 'delete'
  })
}
